package Demo;

public class Student {
    private int studentid;
    private String name;
    private int score;
    private String hobby;
    private String clazz;

    public Student(int studentid, String name, int score, String hobby, String clazz) {
        this.studentid = studentid;
        this.name = name;
        this.score = score;
        this.hobby = hobby;
        this.clazz = clazz;
    }

    public int getStudentid() {
        return studentid;
    }

    public void setStudentid(int studentid) {
        this.studentid = studentid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public String getHobby() {
        return hobby;
    }

    public void setHobby(String hobby) {
        this.hobby = hobby;
    }

    public String getClazz() {
        return clazz;
    }

    public void setClazz(String clazz) {
        this.clazz = clazz;
    }

    @Override
    public String toString() {
        return "Student{" +
                "studentid=" + studentid +
                ", name='" + name + '\'' +
                ", score=" + score +
                ", hobby='" + hobby + '\'' +
                ", clazz='" + clazz + '\'' +
                '}';
    }
}
